package com.zj.transactionspringboot01.service;

import org.springframework.stereotype.Service;
import com.zj.ActionType;

@Service
public class CalService {

    @ActionType
    public int add(int a, int b) {
//       int c=a/0;
        System.out.println("add");
        return a + b;
    }

    public int sum(int a, int b) {
        System.out.println("sum");
        return a * b;
    }

    //    @ActionType
    public int div(int a, int b) {
        System.out.println("div");
        return a / b;
    }
}
